<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('图片识别历史详情')" />
    <th:block th:include="include :: jsonview-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-aiHis-edit" th:object="${aiHis}">

            <div class="form-group">    
                <label class="col-sm-3 control-label">ID：</label>
                <div class="form-control-static" th:text="*{id}">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">用户名称：</label>
                <div class="form-control-static" th:text="*{yhmc}">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">类型：</label>
                <div class="form-control-static" th:text="*{typeName}">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">结果：</label>
                <div class="form-control-static" th:class="${aiHis.result == '1' ? 'label label-primary' : 'label label-danger'}" th:text="${aiHis.result == '1' ? '成功' : '失败'}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">错误信息：</label>

                <div class="form-control-static" th:text="*{errorMsg}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">请求结果：</label>
                <div class="form-control-static"><pre id="jsonResult"></pre></div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: jsonview-js" />

    <script th:inline="javascript">
        $(function() {
            var jsonResult = [[${aiHis.jsonResult}]];
            if ($.common.isNotEmpty(jsonResult) && jsonResult.length < 2000) {
                $("#jsonResult").JSONView(jsonResult);
            } else {
                $("#jsonResult").text(jsonResult);
            }
        });
    </script>
</body>
</html>